﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace test
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            bool Creatnew;
            Mutex m = new Mutex(true,"反向共享",out Creatnew);
            if (Creatnew)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new Form1());
                m.ReleaseMutex();
            }
            else
            {
                MessageBox.Show("不要重复打开程序","提示");
                return;
            }
        }
    }
}
